home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 72 / IOPROG_72.ISO / soft / c++ / NCTDiscWriter2.exe / {app} / MS VB 6.0 Samples / TestVBAudioCDRipper / frmDialog.frm (.txt) next >
Encoding:
Visual Basic Form  |  2003-04-15  |  63.9 KB  |  1,367 lines

  1. VERSION 5.00
  2. Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
  3. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  4. Begin VB.Form frmDialog 
  5.    Caption         =   "Test VB NCTDiscRipper ActiveX DLL"
  6.    ClientHeight    =   9660
  7.    ClientLeft      =   60
  8.    ClientTop       =   240
  9.    ClientWidth     =   9090
  10.    LinkTopic       =   "Form1"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   9660
  14.    ScaleWidth      =   9090
  15.    StartUpPosition =   2  'CenterScreen
  16.    Begin VB.Frame Frame9 
  17.       Caption         =   "CDDB Options"
  18.       Height          =   1725
  19.       Left            =   4800
  20.       TabIndex        =   73
  21.       Top             =   3630
  22.       Width           =   4215
  23.       Begin VB.TextBox CGIAddr 
  24.          Height          =   285
  25.          Left            =   1230
  26.          TabIndex        =   77
  27.          Top             =   690
  28.          Width           =   2745
  29.       End
  30.       Begin VB.TextBox Agent 
  31.          Height          =   285
  32.          Left            =   1230
  33.          TabIndex        =   76
  34.          Top             =   1020
  35.          Width           =   2745
  36.       End
  37.       Begin VB.TextBox EMail 
  38.          Height          =   285
  39.          Left            =   1230
  40.          TabIndex        =   75
  41.          Top             =   1350
  42.          Width           =   2745
  43.       End
  44.       Begin VB.TextBox ServerAddr 
  45.          Height          =   285
  46.          Left            =   1230
  47.          TabIndex        =   74
  48.          Top             =   360
  49.          Width           =   2745
  50.       End
  51.       Begin VB.Label Label13 
  52.          Caption         =   "CGI Script:"
  53.          Height          =   240
  54.          Left            =   150
  55.          TabIndex        =   81
  56.          Top             =   690
  57.          Width           =   2115
  58.       End
  59.       Begin VB.Label Label12 
  60.          Caption         =   "Agent Name:"
  61.          Height          =   240
  62.          Left            =   150
  63.          TabIndex        =   80
  64.          Top             =   1035
  65.          Width           =   1905
  66.       End
  67.       Begin VB.Label Label11 
  68.          Caption         =   "User E-Mail:"
  69.          Height          =   240
  70.          Left            =   150
  71.          TabIndex        =   79
  72.          Top             =   1365
  73.          Width           =   1710
  74.       End
  75.       Begin VB.Label Label9 
  76.          Caption         =   "CDDB Server:"
  77.          Height          =   240
  78.          Left            =   150
  79.          TabIndex        =   78
  80.          Top             =   375
  81.          Width           =   1710
  82.       End
  83.    End
  84.    Begin VB.Frame Frame8 
  85.       Caption         =   "Output Format"
  86.       Height          =   735
  87.       Left            =   4800
  88.       TabIndex        =   66
  89.       Top             =   90
  90.       Width           =   4185
  91.       Begin VB.OptionButton optWAV 
  92.          Caption         =   "WAV"
  93.          Height          =   255
  94.          Left            =   210
  95.          TabIndex        =   70
  96.          Top             =   360
  97.          Value           =   -1  'True
  98.          Width           =   735
  99.       End
  100.       Begin VB.OptionButton optMP3 
  101.          Caption         =   "MP3"
  102.          Height          =   255
  103.          Left            =   1290
  104.          TabIndex        =   69
  105.          Top             =   360
  106.          Width           =   735
  107.       End
  108.       Begin VB.OptionButton optOGG 
  109.          Caption         =   "OGG"
  110.          Height          =   255
  111.          Left            =   3300
  112.          TabIndex        =   68
  113.          Top             =   360
  114.          Width           =   735
  115.       End
  116.       Begin VB.OptionButton optWMA 
  117.          Caption         =   "WMA"
  118.          Height          =   255
  119.          Left            =   2280
  120.          TabIndex        =   67
  121.          Top             =   360
  122.          Width           =   735
  123.       End
  124.    End
  125.    Begin VB.Frame Frame6 
  126.       Caption         =   "Ouptut Options"
  127.       Height          =   2685
  128.       Left            =   4800
  129.       TabIndex        =   64
  130.       Top             =   870
  131.       Width           =   4215
  132.       Begin VB.TextBox txtMP3FormatString 
  133.          Height          =   300
  134.          Left            =   150
  135.          TabIndex        =   87
  136.          Top             =   810
  137.          Width           =   3255
  138.       End
  139.       Begin VB.CommandButton cmdMP3 
  140.          Caption         =   "Set ..."
  141.          Height          =   300
  142.          Left            =   3480
  143.          TabIndex        =   86
  144.          Top             =   810
  145.          Width           =   615
  146.       End
  147.       Begin VB.TextBox txtWMAFormatString 
  148.          Height          =   300
  149.          Left            =   150
  150.          TabIndex        =   85
  151.          Top             =   1200
  152.          Width           =   3255
  153.       End
  154.       Begin VB.CommandButton cmdOGG 
  155.          Caption         =   "Set ..."
  156.          Height          =   300
  157.          Left            =   3480
  158.          TabIndex        =   84
  159.          Top             =   1590
  160.          Width           =   615
  161.       End
  162.       Begin VB.TextBox txtOGGFormatString 
  163.          Height          =   300
  164.          Left            =   150
  165.          TabIndex        =   83
  166.          Top             =   1590
  167.          Width           =   3255
  168.       End
  169.       Begin VB.TextBox txtWMAProfile 
  170.          Height          =   300
  171.          Left            =   3480
  172.          TabIndex        =   82
  173.          Text            =   "24"
  174.          Top             =   1200
  175.          Width           =   360
  176.       End
  177.       Begin VB.TextBox txtOutputDirectory 
  178.          Height          =   315
  179.          Left            =   1500
  180.          TabIndex        =   72
  181.          Top             =   2190
  182.          Width           =   2595
  183.       End
  184.       Begin MSComCtl2.UpDown udWMAProfile 
  185.          Height          =   300
  186.          Left            =   3840
  187.          TabIndex        =   88
  188.          Top             =   1200
  189.          Width           =   240
  190.          _ExtentX        =   423
  191.          _ExtentY        =   529
  192.          _Version        =   393216
  193.          Value           =   24
  194.          BuddyControl    =   "txtWMAProfile"
  195.          BuddyDispid     =   196629
  196.          OrigLeft        =   4950
  197.          OrigTop         =   270
  198.          OrigRight       =   5205
  199.          OrigBottom      =   600
  200.          Max             =   51
  201.          Min             =   1
  202.          SyncBuddy       =   -1  'True
  203.          Wrap            =   -1  'True
  204.          BuddyProperty   =   0
  205.          Enabled         =   -1  'True
  206.       End
  207.       Begin VB.Label Label8 
  208.          Caption         =   "Output Directory:"
  209.          Height          =   315
  210.          Left            =   180
  211.          TabIndex        =   71
  212.          Top             =   2250
  213.          Width           =   1215
  214.       End
  215.       Begin VB.Label txtWAVFormatString 
  216.          BackColor       =   &H80000009&
  217.          BorderStyle     =   1  'Fixed Single
  218.          Caption         =   " PCM 44100 Hz; Stereo;"
  219.          Height          =   315
  220.          Left            =   150
  221.          TabIndex        =   65
  222.          Top             =   420
  223.          Width           =   3255
  224.       End
  225.    End
  226.    Begin VB.Frame Frame7 
  227.       Caption         =   "CDDB Source"
  228.       Height          =   1725
  229.       Left            =   120
  230.       TabIndex        =   15
  231.       Top             =   3630
  232.       Width           =   4635
  233.       Begin MSComCtl2.UpDown udTimeOut 
  234.          Height          =   315
  235.          Left            =   3030
  236.          TabIndex        =   46
  237.          Top             =   1260
  238.          Width           =   240
  239.          _ExtentX        =   423
  240.          _ExtentY        =   556
  241.          _Version        =   393216
  242.          Value           =   4000
  243.          BuddyControl    =   "txtCDDBTimeOut"
  244.          BuddyDispid     =   196634
  245.          OrigLeft        =   2850
  246.          OrigTop         =   420
  247.          OrigRight       =   3090
  248.          OrigBottom      =   705
  249.          Increment       =   500
  250.          Max             =   60000
  251.          Enabled         =   -1  'True
  252.       End
  253.       Begin VB.TextBox txtCDDBTimeOut 
  254.          Alignment       =   1  'Right Justify
  255.          Height          =   315
  256.          Left            =   2160
  257.          TabIndex        =   20
  258.          Top             =   1260
  259.          Width           =   885
  260.       End
  261.       Begin VB.OptionButton optCDPLAYERINI 
  262.          Caption         =   "Use only cdplayer.ini"
  263.          Height          =   315
  264.          Left            =   180
  265.          TabIndex        =   18
  266.          Top             =   930
  267.          Width           =   2190
  268.       End
  269.       Begin VB.OptionButton optCDDBOnLine 
  270.          Caption         =   "Get CDDB info from On-Line Data Base"
  271.          Height          =   375
  272.          Left            =   180
  273.          TabIndex        =   17
  274.          Top             =   630
  275.          Width           =   3240
  276.       End
  277.       Begin VB.OptionButton optCDDBAny 
  278.          Caption         =   "Get CDDB from any availabel source"
  279.          Height          =   315
  280.          Left            =   180
  281.          TabIndex        =   16
  282.          Top             =   360
  283.          Value           =   -1  'True
  284.          Width           =   3060
  285.       End
  286.       Begin VB.Label Label23 
  287.          Caption         =   "FreeDB Server Timeout:"
  288.          Height          =   285
  289.          Left            =   210
  290.          TabIndex        =   19
  291.          Top             =   1350
  292.          Width           =   2055
  293.       End
  294.    End
  295.    Begin VB.Frame Frame5 
  296.       Caption         =   "Interface"
  297.       Height          =   825
  298.       Left            =   4800
  299.       TabIndex        =   57
  300.       Top             =   8310
  301.       Width           =   4245
  302.       Begin VB.OptionButton optAny 
  303.          Caption         =   "Auto"
  304.          Height          =   315
  305.          Left            =   240
  306.          TabIndex        =   61
  307.          Top             =   360
  308.          Value           =   -1  'True
  309.          Width           =   660
  310.       End
  311.       Begin VB.OptionButton optIDE 
  312.          Caption         =   "IDE"
  313.          Height          =   315
  314.          Left            =   1230
  315.          TabIndex        =   60
  316.          Top             =   360
  317.          Width           =   645
  318.       End
  319.       Begin VB.OptionButton optSCSI1 
  320.          Caption         =   "SCSI(old)"
  321.          Height          =   315
  322.          Left            =   3090
  323.          TabIndex        =   59
  324.          Top             =   360
  325.          Width           =   1035
  326.       End
  327.       Begin VB.OptionButton optSCSI2 
  328.          Caption         =   "SCSI"
  329.          Height          =   315
  330.          Left            =   2190
  331.          TabIndex        =   58
  332.          Top             =   360
  333.          Width           =   765
  334.       End
  335.    End
  336.    Begin VB.Frame Frame3 
  337.       Caption         =   "Grab Options"
  338.       Height          =   2835
  339.       Left            =   120
  340.       TabIndex        =   9
  341.       Top             =   5430
  342.       Width           =   4635
  343.       Begin MSComCtl2.UpDown udRetries 
  344.          Height          =   285
  345.          Left            =   3210
  346.          TabIndex        =   42
  347.          Top             =   1980
  348.          Width           =   240
  349.          _ExtentX        =   423
  350.          _ExtentY        =   503
  351.          _Version        =   393216
  352.          Value           =   1
  353.          OrigLeft        =   1740
  354.          OrigTop         =   360
  355.          OrigRight       =   1980
  356.          OrigBottom      =   675
  357.          Min             =   1
  358.          Enabled         =   -1  'True
  359.       End
  360.       Begin VB.TextBox txtDriveSpeed 
  361.          Alignment       =   1  'Right Justify
  362.          Height          =   285
  363.          Left            =   2760
  364.          TabIndex        =   48
  365.          Top             =   2340
  366.          Width           =   465
  367.       End
  368.       Begin VB.OptionButton optSecure 
  369.          Caption         =   "Secure Mode (Double Precision Error Correction)"
  370.          CausesValidation=   0   'False
  371.          Height          =   255
  372.          Left            =   180
  373.          TabIndex        =   43
  374.          Top             =   1140
  375.          Width           =   4395
  376.       End
  377.       Begin VB.TextBox txtRipRetriesOnError 
  378.          Alignment       =   1  'Right Justify
  379.          Height          =   285
  380.          Left            =   2760
  381.          TabIndex        =   14
  382.          Top             =   1980
  383.          Width           =   465
  384.       End
  385.       Begin VB.OptionButton optBurst 
  386.          Caption         =   "Burst Mode (Fast, no Error Correction)"
  387.          CausesValidation=   0   'False
  388.          Height          =   255
  389.          Left            =   180
  390.          TabIndex        =   12
  391.          Top             =   480
  392.          Value           =   -1  'True
  393.          Width           =   3375
  394.       End
  395.       Begin VB.OptionButton optSynch 
  396.          Caption         =   "Synch Mode (Correct Jitter Errors)"
  397.          CausesValidation=   0   'False
  398.          Height          =   255
  399.          Left            =   180
  400.          TabIndex        =   11
  401.          Top             =   810
  402.          Width           =   3525
  403.       End
  404.       Begin VB.OptionButton optParanoid 
  405.          Caption         =   "Paranoid Mode (Small Blocks Read, drive cache disable)"
  406.          CausesValidation=   0   'False
  407.          Height          =   255
  408.          Left            =   180
  409.          TabIndex        =   10
  410.          Top             =   1470
  411.          Width           =   4335
  412.       End
  413.       Begin MSComCtl2.UpDown udDriveSpeed 
  414.          Height          =   285
  415.          Left            =   3210
  416.          TabIndex        =   47
  417.          Top             =   2340
  418.          Width           =   240
  419.          _ExtentX        =   423
  420.          _ExtentY        =   503
  421.          _Version        =   393216
  422.          Value           =   1
  423.          BuddyControl    =   "udDriveSpeed"
  424.          BuddyDispid     =   196692
  425.          OrigLeft        =   2850
  426.          OrigTop         =   420
  427.          OrigRight       =   3090
  428.          OrigBottom      =   705
  429.          Increment       =   2
  430.          Max             =   64
  431.          Min             =   1
  432.          Enabled         =   -1  'True
  433.       End
  434.       Begin VB.Label Label15 
  435.          Caption         =   "x 176 kB/sec"
  436.          Height          =   255
  437.          Left            =   3570
  438.          TabIndex        =   50
  439.          Top             =   2400
  440.          Width           =   975
  441.       End
  442.       Begin VB.Label Label7 
  443.          Caption         =   "Extraction Speed Low or Equal:"
  444.          Height          =   285
  445.          Left            =   210
  446.          TabIndex        =   49
  447.          Top             =   2370
  448.          Width           =   2475
  449.       End
  450.       Begin VB.Label Label20 
  451.          Caption         =   "Retries on Read or Synch Error:"
  452.          Height          =   315
  453.          Left            =   210
  454.          TabIndex        =   13
  455.          Top             =   2010
  456.          Width           =   2355
  457.       End
  458.    End
  459.    Begin VB.Frame Frame4 
  460.       Caption         =   "Action On UnRecovery Read or Synch Error"
  461.       Height          =   825
  462.       Left            =   90
  463.       TabIndex        =   52
  464.       Top             =   8310
  465.       Width           =   4665
  466.       Begin VB.OptionButton optSilence 
  467.          Caption         =   "SILENCE"
  468.          CausesValidation=   0   'False
  469.          Height          =   315
  470.          Left            =   1170
  471.          TabIndex        =   56
  472.          Top             =   360
  473.          Width           =   1200
  474.       End
  475.       Begin VB.OptionButton optCut 
  476.          Caption         =   "CUT"
  477.          CausesValidation=   0   'False
  478.          Height          =   315
  479.          Left            =   2370
  480.          TabIndex        =   55
  481.          Top             =   360
  482.          Width           =   810
  483.       End
  484.       Begin VB.OptionButton optStop 
  485.          Caption         =   "STOP"
  486.          CausesValidation=   0   'False
  487.          Height          =   315
  488.          Left            =   150
  489.          TabIndex        =   54
  490.          Top             =   360
  491.          Value           =   -1  'True
  492.          Width           =   960
  493.       End
  494.       Begin VB.OptionButton optCorrect 
  495.          Caption         =   "CORRECT"
  496.          CausesValidation=   0   'False
  497.          Height          =   315
  498.          Left            =   3270
  499.          TabIndex        =   53
  500.          Top             =   360
  501.          Width           =   1200
  502.       End
  503.    End
  504.    Begin VB.Frame Frame2 
  505.       Caption         =   "Drive Options"
  506.       Height          =   2835
  507.       Left            =   4800
  508.       TabIndex        =   21
  509.       Top             =   5430
  510.       Width           =   4245
  511.       Begin VB.CheckBox chkUseExtASPI 
  512.          Caption         =   "Use external ASPI from wnaspi32.dll"
  513.          Height          =   345
  514.          Left            =   150
  515.          TabIndex        =   51
  516.          Top             =   720
  517.          Width           =   4005
  518.       End
  519.       Begin MSComCtl2.UpDown udSpinUpTime 
  520.          Height          =   285
  521.          Left            =   2370
  522.          TabIndex        =   24
  523.          Top             =   1470
  524.          Width           =   240
  525.          _ExtentX        =   423
  526.          _ExtentY        =   503
  527.          _Version        =   393216
  528.          Value           =   1
  529.          BuddyControl    =   "txtSpinUpTime"
  530.          BuddyDispid     =   196662
  531.          OrigLeft        =   2850
  532.          OrigTop         =   780
  533.          OrigRight       =   3090
  534.          OrigBottom      =   1065
  535.          Min             =   1
  536.          Enabled         =   -1  'True
  537.       End
  538.       Begin VB.OptionButton Option5 
  539.          Caption         =   "SCSI(10)"
  540.          Height          =   315
  541.          Left            =   4875
  542.          TabIndex        =   27
  543.          Top             =   0
  544.          Width           =   1035
  545.       End
  546.       Begin VB.TextBox txtSpinUpTime 
  547.          Alignment       =   1  'Right Justify
  548.          Height          =   285
  549.          Left            =   1590
  550.          TabIndex        =   23
  551.          Top             =   1470
  552.          Width           =   795
  553.       End
  554.       Begin VB.CheckBox chkDriveLockTray 
  555.          Caption         =   "Lock CD Tray During Grab"
  556.          Height          =   255
  557.          Left            =   150
  558.          TabIndex        =   22
  559.          Top             =   420
  560.          Value           =   1  'Checked
  561.          Width           =   3735
  562.       End
  563.       Begin VB.Label txtDriveStatus 
  564.          Alignment       =   1  'Right Justify
  565.          BorderStyle     =   1  'Fixed Single
  566.          Height          =   255
  567.          Left            =   1230
  568.          TabIndex        =   45
  569.          Top             =   2370
  570.          Width           =   2865
  571.       End
  572.       Begin VB.Label Label5 
  573.          Caption         =   "Drive Status:"
  574.          Height          =   315
  575.          Left            =   120
  576.          TabIndex        =   44
  577.          Top             =   2370
  578.          Width           =   1005
  579.       End
  580.       Begin VB.Label Label2 
  581.          Caption         =   "Spin Up during:"
  582.          Height          =   225
  583.          Left            =   150
  584.          TabIndex        =   25
  585.          Top             =   1500
  586.          Width           =   2385
  587.       End
  588.    End
  589.    Begin MSComctlLib.StatusBar StatusBar1 
  590.       Align           =   2  'Align Bottom
  591.       Height          =   315
  592.       Left            =   0
  593.       TabIndex        =   8
  594.       Top             =   9345
  595.       Width           =   9090
  596.       _ExtentX        =   16034
  597.       _ExtentY        =   556
  598.       _Version        =   393216
  599.       BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
  600.          NumPanels       =   4
  601.          BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  602.             AutoSize        =   1
  603.             Object.Width           =   2620
  604.             MinWidth        =   2541
  605.          EndProperty
  606.          BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  607.             Object.Width           =   2893
  608.             MinWidth        =   2893
  609.          EndProperty
  610.          BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  611.             Object.Width           =   3881
  612.             MinWidth        =   3881
  613.          EndProperty
  614.          BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  615.             Object.Width           =   6068
  616.             MinWidth        =   6068
  617.          EndProperty
  618.       EndProperty
  619.    End
  620.    Begin VB.Frame Frame1 
  621.       Caption         =   "CD"
  622.       Height          =   3465
  623.       Left            =   120
  624.       TabIndex        =   0
  625.       Top             =   90
  626.       Width           =   4650
  627.       Begin VB.CommandButton GetCDDBButton 
  628.          Caption         =   "Get Disk Info!"
  629.          Height          =   375
  630.          Left            =   870
  631.          TabIndex        =   63
  632.          Top             =   2970
  633.          Width           =   2055
  634.       End
  635.       Begin VB.TextBox txtTrackDuration 
  636.          Alignment       =   2  'Center
  637.          Height          =   285
  638.          Left            =   2640
  639.          Locked          =   -1  'True
  640.          TabIndex        =   33
  641.          Top             =   1230
  642.          Width           =   1755
  643.       End
  644.       Begin VB.CommandButton cmdRip 
  645.          Caption         =   "Rip Track!"
  646.          Height          =   375
  647.          Left            =   3000
  648.          TabIndex        =   32
  649.          Top             =   2970
  650.          Width           =   1395
  651.       End
  652.       Begin VB.TextBox txtTitle 
  653.          Height          =   285
  654.          Left            =   870
  655.          TabIndex        =   31
  656.          Top             =   1590
  657.          Width           =   3525
  658.       End
  659.       Begin VB.TextBox txtAlbum 
  660.          Height          =   285
  661.          Left            =   870
  662.          TabIndex        =   30
  663.          Top             =   1920
  664.          Width           =   3525
  665.       End
  666.       Begin VB.TextBox txtArtist 
  667.          Height          =   285
  668.          Left            =   870
  669.          TabIndex        =   29
  670.          Top             =   2250
  671.          Width           =   3525
  672.       End
  673.       Begin VB.TextBox txtGenre 
  674.          Height          =   285
  675.          Left            =   870
  676.          TabIndex        =   28
  677.          Top             =   2580
  678.          Width           =   3525
  679.       End
  680.       Begin VB.CommandButton Eject 
  681.          Caption         =   "Eject"
  682.          Height          =   345
  683.          Left            =   3360
  684.          TabIndex        =   26
  685.          Top             =   300
  686.          Width           =   1065
  687.       End
  688.       Begin MSComCtl2.UpDown udDriveNum 
  689.          Height          =   285
  690.          Left            =   1350
  691.          TabIndex        =   6
  692.          Top             =   300
  693.          Width           =   240
  694.          _ExtentX        =   423
  695.          _ExtentY        =   503
  696.          _Version        =   393216
  697.          Value           =   1
  698.          OrigLeft        =   1740
  699.          OrigTop         =   360
  700.          OrigRight       =   1980
  701.          OrigBottom      =   675
  702.          Min             =   1
  703.          Enabled         =   -1  'True
  704.       End
  705.       Begin VB.CommandButton cmdRefresh 
  706.          Caption         =   "Refresh"
  707.          Height          =   345
  708.          Left            =   2220
  709.          TabIndex        =   5
  710.          Top             =   300
  711.          Width           =   1065
  712.       End
  713.       Begin VB.TextBox txtDriveName 
  714.          Height          =   285
  715.          Left            =   870
  716.          Locked          =   -1  'True
  717.          TabIndex        =   4
  718.          Top             =   750
  719.          Width           =   3525
  720.       End
  721.       Begin VB.TextBox txtDriveNum 
  722.          Alignment       =   2  'Center
  723.          Height          =   285
  724.          Left            =   870
  725.          Locked          =   -1  'True
  726.          TabIndex        =   2
  727.          Top             =   315
  728.          Width           =   495
  729.       End
  730.       Begin MSComCtl2.UpDown udTrackNum 
  731.          Height          =   285
  732.          Left            =   1410
  733.          TabIndex        =   34
  734.          Top             =   1230
  735.          Width           =   240
  736.          _ExtentX        =   423
  737.          _ExtentY        =   503
  738.          _Version        =   393216
  739.          Value           =   1
  740.          BuddyControl    =   "txtTrackNum"
  741.          BuddyDispid     =   196679
  742.          OrigLeft        =   1740
  743.          OrigTop         =   360
  744.          OrigRight       =   1980
  745.          OrigBottom      =   675
  746.          Min             =   1
  747.          SyncBuddy       =   -1  'True
  748.          BuddyProperty   =   65547
  749.          Enabled         =   -1  'True
  750.       End
  751.       Begin VB.TextBox txtTrackNum 
  752.          Alignment       =   2  'Center
  753.          Height          =   285
  754.          Left            =   870
  755.          Locked          =   -1  'True
  756.          TabIndex        =   35
  757.          Top             =   1230
  758.          Width           =   780
  759.       End
  760.       Begin VB.Label Label3 
  761.          Caption         =   "Track:"
  762.          Height          =   195
  763.          Left            =   120
  764.          TabIndex        =   41
  765.          Top             =   1290
  766.          Width           =   615
  767.       End
  768.       Begin VB.Label Label4 
  769.          Caption         =   "Duration:"
  770.          Height          =   195
  771.          Left            =   1890
  772.          TabIndex        =   40
  773.          Top             =   1290
  774.          Width           =   675
  775.       End
  776.       Begin VB.Label Label14 
  777.          Caption         =   "Title:"
  778.          Height          =   195
  779.          Left            =   120
  780.          TabIndex        =   39
  781.          Top             =   1620
  782.          Width           =   420
  783.       End
  784.       Begin VB.Label Label16 
  785.          Caption         =   "Album:"
  786.          Height          =   285
  787.          Left            =   120
  788.          TabIndex        =   38
  789.          Top             =   1950
  790.          Width           =   645
  791.       End
  792.       Begin VB.Label Label17 
  793.          Caption         =   "Artist:"
  794.          Height          =   285
  795.          Left            =   120
  796.          TabIndex        =   37
  797.          Top             =   2310
  798.          Width           =   495
  799.       End
  800.       Begin VB.Label Label18 
  801.          Caption         =   "Genre:"
  802.          Height          =   285
  803.          Left            =   120
  804.          TabIndex        =   36
  805.          Top             =   2640
  806.          Width           =   555
  807.       End
  808.       Begin VB.Label txtDriveLetter 
  809.          BorderStyle     =   1  'Fixed Single
  810.          Height          =   315
  811.          Left            =   1635
  812.          TabIndex        =   7
  813.          Top             =   315
  814.          Width           =   390
  815.       End
  816.       Begin VB.Label Ladel2 
  817.          Caption         =   "Vendor:"
  818.          Height          =   195
  819.          Left            =   150
  820.          TabIndex        =   3
  821.          Top             =   780
  822.          Width           =   615
  823.       End
  824.       Begin VB.Label Label1 
  825.          Caption         =   "Drive:"
  826.          Height          =   195
  827.          Left            =   150
  828.          TabIndex        =   1
  829.          Top             =   330
  830.          Width           =   645
  831.       End
  832.    End
  833.    Begin MSComctlLib.ProgressBar ProgressBar1 
  834.       Height          =   195
  835.       Left            =   120
  836.       TabIndex        =   62
  837.       Top             =   9150
  838.       Visible         =   0   'False
  839.       Width           =   8955
  840.       _ExtentX        =   15796
  841.       _ExtentY        =   344
  842.       _Version        =   393216
  843.       Appearance      =   1
  844.       Min             =   1e-4
  845.    End
  846. Attribute VB_Name = "frmDialog"
  847. Attribute VB_GlobalNameSpace = False
  848. Attribute VB_Creatable = False
  849. Attribute VB_PredeclaredId = True
  850. Attribute VB_Exposed = False
  851. Dim fileType As Integer     'Declares the variable which stores the integer nubmer that complies to some type of the file(WAV=1,MP3=2,RAW=3)
  852. Dim CancelRp  As Boolean   'Declares the variable which is true when the rip or play is canceled (stopped)
  853. Dim RipInProgress As Boolean   'Declares the variable which is true when the track ripping
  854. Dim BufferSize As Long      'Declares the variable which is stores read track samples number when the track playing
  855. Dim StartSamples As Long    'Declares the variable which is stores start samples number when the track playing
  856. Dim CurrentSamples As Long  'Declares the variable which is stores current samples number - current play position
  857. Dim SliderBusy As Boolean   'Declares the variable which is true during user moves the slider when the track playing
  858. Dim retryNum As Integer     'Declares the variable which is stores the actual number of re-read on error blocks, when audio data extracting from the track
  859. Dim errorBlocks As Integer  'Declares the variable which is stores number of ripbed track error blocks
  860. Dim error As Boolean
  861. Dim time1 As Date       'declares the variable to describe the starting time of the ripbing procedure
  862. Dim time2 As Date       'declares the variable to describe the finishing time of the ripbing procedure
  863. Public WithEvents AudioCDRipper1 As NCTDISCRIPPERLib.AudioCDRipper
  864. Attribute AudioCDRipper1.VB_VarHelpID = -1
  865. Private Sub cmdMP3_Click()
  866.     frmMP3.Show 1, Me
  867. End Sub
  868. Private Sub cmdOGG_Click()
  869.     frmOgg.Show 1, Me
  870. End Sub
  871. Private Sub Form_Load()             'This sub starts on loading the frmDialog frame
  872.     frmScan.Show 0, Me
  873.     frmScan.Label1.Refresh
  874.     Set AudioCDRipper1 = New NCTDISCRIPPERLib.AudioCDRipper
  875.     AudioCDRipper1.DriverOpen
  876.     AudioCDRipper1.driveReadType = CDRT_ANY     'Drive interface will be detect automatically by AudioRipber control
  877.     udDriveSpeed.Min = 1            'Sets driveSpeed UpDown control min value
  878.     udDriveSpeed.Max = 64           'Sets driveSpeed UpDown control max value
  879.     udDriveSpeed.Increment = 4      'Sets driveSpeed UpDown control increment
  880.     udDriveSpeed.Value = AudioCDRipper1.driveSpeed   'Sets driveSpeed UpDown control current value
  881.     udSpinUpTime.Min = 0            'Sets spinUpTime UpDown control min value
  882.     udSpinUpTime.Max = 30 * 1000    'Sets spinUpTime UpDown control max value
  883.     udSpinUpTime.Increment = 500    'Sets spinUpTime UpDown control Increment
  884.     udSpinUpTime.Value = 0            'Sets spinUpTime UpDown control current value
  885.     udRetries.Min = 0               'Sets retries UpDown control min value
  886.     udRetries.Max = 255             'Sets retries UpDown control max value
  887.     udRetries.Value = AudioCDRipper1.ripOnErrorRetries  'Sets retries UpDown control current value
  888.             
  889.     ServerAddr.Text = AudioCDRipper1.cddbServerAddress   'Writes the current Server address to the ServerAddr textbox
  890.     CGIAddr.Text = AudioCDRipper1.cddbCGIScript          'Writes the current CGI Script Relative Address to the CGIAddr textbox
  891.     Agent.Text = AudioCDRipper1.cddbAgentName            'Writes the current Agent Name (Apllication) to the Agent textbox
  892.     EMail.Text = AudioCDRipper1.cddbUserEMail            'Writes the current E-Mail Address to the EMail textbox
  893.     AudioCDRipper1.cddbTimeOut = 7000                    'Sets CDDB TimeOut
  894.     udTimeOut.Min = 0                                   'Sets CDDB TimeOut UpDown Control min value
  895.     udTimeOut.Max = 30 * 1000                           'Sets CDDB TimeOut UpDown Control max value
  896.     udTimeOut.Increment = 500                           'Sets CDDB TimeOut UpDown Control increment
  897.     udTimeOut.Value = AudioCDRipper1.cddbTimeOut         'Sets CDDB TimeOut UpDown Control current value
  898.     AudioCDRipper1.SetFormatOGG
  899.     txtOGGFormatString.Text = AudioCDRipper1.trackFormatString
  900.     AudioCDRipper1.SetFormatMP3
  901.     txtMP3FormatString.Text = AudioCDRipper1.trackFormatString
  902.     AudioCDRipper1.SetFormatWMA
  903.     txtWMAFormatString.Text = AudioCDRipper1.trackFormatString
  904.     txtWAVFormatString.Enabled = True
  905.     txtMP3FormatString.Enabled = False
  906.     txtWMAFormatString.Enabled = False
  907.     txtOGGFormatString.Enabled = False
  908.     StatusBar1.Panels(4).Text = "CDDB Status: IDLE"     'Output current CDDB Query status on Status Bar
  909.     txtDriveStatus.Caption = "Idle"                     'Output drive status on txtDriveStatus label
  910.     CancelRp = False                                   'Sets the global variable CancelRp default value
  911.     fileType = 1                                        'Sets the output audiofile format to WAV
  912.     AudioCDRipper1.ripModePreset = BURST                'Set AudioRipber RipModePreset in BURST (fast rip without error correction)
  913.     RefreshCD                                           'Calls the RefreshCD sub as if the "RefreshCD" button was clicked
  914.     frmScan.Hide
  915.     RipInProgress = False
  916. End Sub
  917. Private Sub Form_Unload(Cancel As Integer)
  918.     AudioCDRipper1.DriverClose
  919.     Set AudioCDRipper1 = Nothing
  920. End Sub
  921. Private Sub Form_Activate()        'this sub starts on loading the frmDialog frame after the Form_Load sub has been executed
  922.     cmdRefresh.SetFocus            'Moves the focus to the "RefreshCD" button
  923. End Sub
  924. Private Sub cmdRip_Click() 'this sub starts when the user click the "RipNow!"/"Stop Rip" button for start or stop the rip process
  925.     Dim nSamples As Long    'declares the variable to store the number of samples
  926.     Dim WArray() As Integer 'declarse the variable size array to store the data read from the CD
  927.     Dim curSamples As Long  'declares the variable to store current samples number
  928.     Dim ripPercent As Integer  'declares the variable to store current percent of rip progress
  929.         
  930.     ProgressBar1.Visible = True
  931.     If RipInProgress = False Then    'if there is no rip operations in progress - start rip, else - stop rip
  932.         RipInProgress = True
  933.         time1 = Now             'Gets the starting time of extracting audio process
  934.         FormStartRip            'prepare the form to start extracting audio data
  935.         Select Case fileType    'do the following according to the type of the output file
  936.         Case 1                  'if the filetype=1 (WAV) then
  937.             AudioCDRipper1.RipTrackToWav "Track" & AudioCDRipper1.trackNum 'Rip the Track of the current number to the file "Track"+number_of_track.wav
  938.         Case 2                  'if the filetype=2 (MP3) then
  939.             AudioCDRipper1.RipTrackToMP3 "Track" & AudioCDRipper1.trackNum 'Rip the Track of the current number to the file "Track"+number_of_track.mp3
  940.         Case 3                  'if the filetype=2 (OGG) then
  941.             AudioCDRipper1.RipTrackToOGG "Track" & AudioCDRipper1.trackNum  'Rip the Track of the current number to the file "Track"+number_of_track.ogg
  942.         Case 4                  'if the filetype=2 (OGG) then
  943.             AudioCDRipper1.RipTrackToWMA "Track" & AudioCDRipper1.trackNum  'Rip the Track of the current number to the file "Track"+number_of_track.wma
  944.        End Select
  945.     Else
  946.         CancelRp = True                'If rip in progress and StopRip button click occures
  947.         txtDriveStatus.Caption = "Cancelling, please wait..."
  948.         AudioCDRipper1.StopRip        'Cancel AudioRipber to read track
  949.     End If
  950. End Sub
  951. Private Sub cmdRefresh_Click() 'this sub starts when the user click the "Refresh" button
  952.     Inactive    'Inactive all form controls, that can't be used during the disc refresh
  953.     RefreshCD   'Calls the RefreshCD sub
  954.     Active      'Active all form controls, that can't be used during the disc refresh
  955. End Sub
  956. Private Sub Eject_Click()    'this sub starts when the user click the "Eject" button
  957.     txtDriveStatus.Caption = "Eject Disk"   'informs user about Eject Disc starts
  958.     AudioCDRipper1.Refresh                 'Refresh the CD
  959.     AudioCDRipper1.Eject                     'UnLock drive if it was locked and eject the CD
  960.     txtDriveStatus.Caption = "Idle"         'informs user about the end of Eject operation
  961. End Sub
  962. Private Sub GetCDDBButton_Click() 'this sub starts when the user click the "Refresh" button
  963.     Dim CDDBInfoEnable As Boolean   'declares the variable, that is true when CDDB information is availabel
  964.     AudioCDRipper1.cddbServerAddress = ServerAddr.Text   'Sets CDDB Server address to the one written in the ServerAddr TextBox
  965.     AudioCDRipper1.cddbCGIScript = CGIAddr.Text          'Sets CGI Script Relative Address to the one written in the CGIAddr textbox
  966.     AudioCDRipper1.cddbAgentName = Agent.Text            'Sets Agent Name (Apllication) to the one written in the Agent textBox
  967.     AudioCDRipper1.cddbUserEMail = EMail.Text            'Sets User E-Mail Address to the one written in the Email textbox
  968.     AudioCDRipper1.cddbTimeOut = txtCDDBTimeOut.Text     'sets the CDDB query timeout, if query is timed out it will be cancelled and CDDB information will not availabel
  969.     If (optCDDBAny.Value) Then                                      'Sets the CDDB source for query
  970.         CDDBInfoEnabled = AudioCDRipper1.GetCDDBInfo(All)            'ALL means using cdplayer.ini or CDDB server, if any internet connection is availabel
  971.     End If
  972.     If (optCDDBOnLine.Value) Then
  973.         CDDBInfoEnabled = AudioCDRipper1.GetCDDBInfo(ONLINEDATABASE) 'ONLINEDATABASE will query internet CDDB server, if any internet connection is availabel
  974.     End If
  975.     If (optCDPLAYERINI.Value) Then
  976.         CDDBInfoEnabled = AudioCDRipper1.GetCDDBInfo(CDPLAYERINI)    'CDPLYERINI means using cdplayer.ini file on local computer
  977.     End If
  978.     ServerAddr.Text = AudioCDRipper1.cddbServerAddress   'Writes the current Server address to the ServerAddr textbox
  979.     CGIAddr.Text = AudioCDRipper1.cddbCGIScript          'Writes the current CGI Script Relative Address to the CGIAddr textbox
  980.     Agent.Text = AudioCDRipper1.cddbAgentName            'Writes the current Agent Name (Apllication) to the Agent textbox
  981.     EMail.Text = AudioCDRipper1.cddbUserEMail            'Writes the current E-Mail Address to the EMail textbox
  982.     txtCDDBTimeOut.Text = AudioCDRipper1.cddbTimeOut     'Writes the CDDB timeout value to the CDDBTimeOut text box
  983.     If (CDDBInfoEnabled) Then           'if cddb info is enabled (or available) then
  984.         txtAlbum.Text = AudioCDRipper1.cddbInfoAlbum        'Writes the album name to the Album textbox
  985.         txtArtist.Text = AudioCDRipper1.cddbInfoArtist      'Writes the artist name to the Artist textbox
  986.         txtGenre.Text = AudioCDRipper1.cddbInfoGenre        'Writes the music genre name to the Genre textbox
  987.         txtTitle.Text = AudioCDRipper1.cddbInfoTitle        'Writes the track title (name) to the Title textbox
  988.     Else                                'otherwise
  989.         MsgBox "No CDDB Information available! Try other CDDB source.", vbExclamation 'produces the message box that CDDB info is not available
  990.     End If
  991.     StatusBar1.Panels(4).Text = "CDDB Status: IDLE"       'Informs user that no CDDB queries in progress
  992. End Sub
  993. Private Sub chkUseExtASPI_Click() 'this sub starts when the user checks or unchecks "Use External ASPI" check box
  994.     If chkUseExtASPI.Value = 1 Then 'if user checks the check box
  995.         error = False
  996.         AudioCDRipper1.ripUseExternalASPI = True 'Sets AudioRipber to distonnect from Native SCSI interface and connect to user's ASPI interface
  997.         Inactive                    'Inactive form controls, that cannot be used during the refresh operation
  998.         RefreshCD   'Calls the RefreshCD sub
  999.         Active                      'Active form controls, , that cannot be used during the refresh operation
  1000.         If error = True Then  'if error occures
  1001.             error = False
  1002.             MsgBox "Error load external ASPI! Rollback to Native SCSI Interface!"   'informs the user about error
  1003.             AudioCDRipper1.ripUseExternalASPI = False   'rollback to the native SCSI Interface
  1004.             chkUseExtASPI.Value = 0 'uncheks the checkbox
  1005.             Inactive    'Inactive form controls, that cannot be used during the refresh operation
  1006.             RefreshCD   'Calls the RefreshCD sub
  1007.             Active      'Active form controls, , that cannot be used during the refresh operation
  1008.         Else                                    'if it was no errors
  1009.             MsgBox "External ASPI Interface in use now!"   'informs user that external interface connected
  1010.         End If
  1011.     Else                            'if user uncheks the check box
  1012.         AudioCDRipper1.ripUseExternalASPI = False       'Sets AudioRipber to disconnect from external interface and connect to Native SCSI interface
  1013.         Inactive    'Inactive form controls, that cannot be used during the refresh operation
  1014.         RefreshCD   'Calls the RefreshCD sub
  1015.         Active      'Active form controls, , that cannot be used during the refresh operation
  1016.         MsgBox "Native SCSI Interface in use now!"  'informs the user that control connects to native SCSI interface
  1017.     End If
  1018. End Sub
  1019. Private Sub chkDriveLockTray_Click() 'this sub starts when the user checks or unchecks the "Lock Tray On Rip" check box
  1020.     AudioCDRipper1.driveLockCDTrayDuringRip = chkDriveLockTray.Value    'Sets the driveLockCDTrayDuringRip
  1021. End Sub
  1022. Private Sub optAny_Click()  'this sub starts when the user click on Auto Option
  1023.     AudioCDRipper1.driveReadType = CDRT_ANY  'Sets AudioRipber to Auto Detect drive interface befor the read operation starts
  1024. End Sub
  1025. Private Sub optIDE_Click()  'this sub starts when the user click on IDE Option
  1026.     AudioCDRipper1.driveReadType = CDRT_ATAPI1   'Sets AudioRipber to use read commands in according to ATAPI(IDE, official) specification
  1027. End Sub
  1028. Private Sub optSCSI1_Click()    'this sub starts when the user click on SCSI(old) Option
  1029.     AudioCDRipper1.driveReadType = CDRT_READ6    'Sets AudioRipber to use read commands in according to SCSI(old, SBC) specification
  1030. End Sub
  1031. Private Sub optSCSI2_Click()    'this sub starts when the user click on SCSI Option
  1032.     AudioCDRipper1.driveReadType = CDRT_READ10   'Sets AudioRipber to use read commands in according to SCSI(SBC2) specification
  1033. End Sub
  1034. Private Sub optCut_Click()  'this sub starts when the user click on Cut Option
  1035.     AudioCDRipper1.ripOnErrorAction = CUT   'Sets AudioRipber to cut the error blocks, contained unrecovered data
  1036. End Sub
  1037. Private Sub optSilence_Click()  'this sub starts when the user click on Silence Option
  1038.     AudioCDRipper1.ripOnErrorAction = SILENCE   'Sets AudioRipber to insert the same duration silence on error blocks, contained unrecovered data
  1039. End Sub
  1040. Private Sub optStop_Click() 'this sub starts when the user click on Stop Option
  1041.     AudioCDRipper1.ripOnErrorAction = STOPGRAB  'Sets AudioRipber to stop rip if it is an unrecovery read error
  1042. End Sub
  1043. Private Sub optCorrect_Click()  'this sub starts when the user click on Correct Option
  1044.     AudioCDRipper1.ripOnErrorAction = CORRECT   'Sets AudioRipber to use error correction agorithm to remove "glitches" in audio signal on error blocks, contained unrecovered data
  1045. End Sub
  1046. Private Sub optBurst_Click() 'this sub starts when the user click on Burst Option
  1047.     AudioCDRipper1.ripModePreset = BURST    'Sets Audio Ripber rip preset to BURST
  1048.     txtRipRetriesOnError.Text = AudioCDRipper1.ripOnErrorRetries   'Writes Burst preset ripOnErrorRetries into the Retries on Read or Synch error text box
  1049.     txtSpinUpTime.Text = AudioCDRipper1.driveSpinUpTime  'Writes Burst preset spinUpTime into the Spin Up Time text box
  1050.     txtDriveSpeed.Text = AudioCDRipper1.driveSpeed   'Writes Burst preset max drive speed into the Max Extraction Speed text box
  1051. End Sub
  1052. Private Sub optSynch_Click() 'this sub starts when the user click on Synch Option
  1053.     AudioCDRipper1.ripModePreset = SYNCH    'Sets Audio Ripber rip preset to SYNCH
  1054.     txtRipRetriesOnError.Text = AudioCDRipper1.ripOnErrorRetries   'Writes Synch preset ripOnErrorRetries into the Retries on Read or Synch error text box
  1055.     txtSpinUpTime.Text = AudioCDRipper1.driveSpinUpTime  'Writes Synch preset spinUpTime into the Spin Up Time text box
  1056.     txtDriveSpeed.Text = AudioCDRipper1.driveSpeed   'Writes Synch preset max drive speed into the Max Extraction Speed text box
  1057. End Sub
  1058. Private Sub optSecure_Click() 'this sub starts when the user click on Secure Option
  1059.     AudioCDRipper1.ripModePreset = SECURE   'Sets Audio Ripber rip preset to SECURE
  1060.     txtRipRetriesOnError.Text = AudioCDRipper1.ripOnErrorRetries   'Writes Secure preset ripOnErrorRetries into the Retries on Read or Synch error text box
  1061.     txtSpinUpTime.Text = AudioCDRipper1.driveSpinUpTime  'Writes Secure preset spinUpTime into the Spin Up Time text box
  1062.     txtDriveSpeed.Text = AudioCDRipper1.driveSpeed   'Writes Secure preset max drive speed into the Max Extraction Speed text box
  1063. End Sub
  1064. Private Sub optParanoid_Click() 'this sub starts when the user click on Paranoid Option
  1065.     AudioCDRipper1.ripModePreset = PARANOID 'Sets Audio Ripber rip preset to PARANOID
  1066.     txtRipRetriesOnError.Text = AudioCDRipper1.ripOnErrorRetries   'Writes Paranoid preset ripOnErrorRetries into the Retries on Read or Synch error text box
  1067.     txtSpinUpTime.Text = AudioCDRipper1.driveSpinUpTime  'Writes Paranoid preset spinUpTime into the Spin Up Time text box
  1068.     txtDriveSpeed.Text = AudioCDRipper1.driveSpeed   'Writes Paranoid preset max drive speed into the Max Extraction Speed text box
  1069. End Sub
  1070. Private Sub optWAV_Click()  'this sub starts when the user click on WAV Option
  1071.     fileType = 1    'Sets output file format to WAV
  1072.     txtWAVFormatString.Enabled = True
  1073.     txtMP3FormatString.Enabled = False
  1074.     txtWMAFormatString.Enabled = False
  1075.     txtOGGFormatString.Enabled = False
  1076. End Sub
  1077. Private Sub optOGG_Click()  'this sub starts when the user click on RAW Option
  1078.     fileType = 3    'Sets output file format to RAW
  1079.     txtWAVFormatString.Enabled = False
  1080.     txtMP3FormatString.Enabled = False
  1081.     txtWMAFormatString.Enabled = False
  1082.     txtOGGFormatString.Enabled = True
  1083. End Sub
  1084. Private Sub optMP3_Click()  'this sub starts when the user click on MP3 Option
  1085.     fileType = 2    'Sets output file format to MP3
  1086.     txtWAVFormatString.Enabled = False
  1087.     txtMP3FormatString.Enabled = True
  1088.     txtWMAFormatString.Enabled = False
  1089.     txtOGGFormatString.Enabled = False
  1090. End Sub
  1091. Private Sub optWMA_Click()
  1092.     fileType = 4    'Sets output file format to OGG
  1093.     txtWAVFormatString.Enabled = False
  1094.     txtMP3FormatString.Enabled = False
  1095.     txtWMAFormatString.Enabled = True
  1096.     txtOGGFormatString.Enabled = False
  1097. End Sub
  1098. Private Sub udWMAProfile_Change()
  1099.     AudioCDRipper1.SetFormatWMA udWMAProfile.Value
  1100.     txtWMAFormatString.Text = AudioCDRipper1.trackFormatString
  1101. End Sub
  1102. Private Sub udDriveNum_Change() 'this sub starts when the user changes the value of the driveNum UpDown control
  1103.     AudioCDRipper1.driveNum = udDriveNum.Value 'sets the current number of CD-drive to the value set by the "Num" up down scroll buttons
  1104.     RefreshCD   'Calls the RefreshCD sub (as if "Refresh CD" button was pressed)
  1105. End Sub
  1106. Private Sub udDriveSpeed_Change()   'this sub starts when the user changes the value of the driveSpeed UpDown control
  1107.     AudioCDRipper1.driveSpeed = udDriveSpeed.Value   'Sets max read speed
  1108.     txtDriveSpeed = AudioCDRipper1.driveSpeed        'Writes real max read speed to txtDriveSpeed text box
  1109. End Sub
  1110. Private Sub udRetries_Change()  'this sub starts when the user changes the value of the Retries UpDown control
  1111.     AudioCDRipper1.ripOnErrorRetries = udRetries.Value  'Sets retries number
  1112.     txtRipRetriesOnError.Text = AudioCDRipper1.ripOnErrorRetries   'Writes retries number to txtRipRetriesOnError text box
  1113. End Sub
  1114. Private Sub udSpinUpTime_Change()   'this sub starts when the user changes the value of the spinUpTime UpDown control
  1115.     AudioCDRipper1.driveSpinUpTime = udSpinUpTime.Value  'Sets spin up time
  1116.     txtSpinUpTime.Text = AudioCDRipper1.driveSpinUpTime  'Writes spin up time to txtSpinUpTime text box
  1117. End Sub
  1118. Private Sub udTimeOut_Change()  'this sub starts when the user changes the value of the CDDB TimeOut UpDown control
  1119.     AudioCDRipper1.cddbTimeOut = udTimeOut.Value 'Sets CDDB timeout
  1120.     txtCDDBTimeOut.Text = AudioCDRipper1.cddbTimeOut 'Writes CDDB timeout to txtCDDBTimeOut text box
  1121. End Sub
  1122. Private Sub udTrackNum_Change() 'this sub starts on clicking the "Num" up down scroll buttons in the "CD Track Info" frame
  1123.     AudioCDRipper1.trackNum = udTrackNum.Value   'sets the current number of audio CD track to the value set by the "Num" up down scroll buttons
  1124.     txtTrackDuration.Text = Format(Int(AudioCDRipper1.trackDuration / 1000 / 60), "00") & ":" & Format((AudioCDRipper1.trackDuration / 1000) Mod 60, "00") 'writes to the "Duration" textbox in the "CD Track Info"  frame the length of the CD track in hours:minutes:seconds format
  1125.     txtTitle.Text = AudioCDRipper1.cddbInfoTitle    'writes CD track Tirle to the "Title" textbox in the "CD Track INfo" frame
  1126. End Sub
  1127. Private Sub RefreshCD()     'this sub starts when it is called by any other sub or function
  1128.     StatusBar1.Panels(1).Text = "RefreshCD" 'Sets Status Bar panel to "RefreshCD" during this method works
  1129.     GetCDDBButton.Enabled = False   'Disables GetCDDBButton
  1130.     Me.Refresh                      'Refresh the form
  1131.     AudioCDRipper1.Refresh 'Re-read the disc content
  1132.     udDriveNum.Min = 1         'Sets the minimum value of the "Num" updown scroll buttons in the "CD Info" frame to 1
  1133.     udDriveNum.Max = AudioCDRipper1.driveCount     'Sets the Maximum value of the "Num" updown scroll buttons in the "CD Info" frame to maximal number of CD drives in the system
  1134.     txtDriveLetter.Caption = AudioCDRipper1.driveLetter & "\" 'writes to the CD logical name textbox the name of the CD ripbed
  1135.     txtDriveNum.Text = AudioCDRipper1.driveNum     'Writes to the "Num" textbox number of current CD drive in the system
  1136.     txtDriveName.Text = AudioCDRipper1.driveName   'Writes to the "Drive" textbox name of the current CD drive in the system
  1137.     txtDriveSpeed.Text = AudioCDRipper1.driveSpeed   'Writes the actual drive speed to txtDriveSpeed text box
  1138.     txtSpinUpTime.Text = AudioCDRipper1.driveSpinUpTime  'Writes the actual spin up time to txtSpinUpTime text box
  1139.     Select Case AudioCDRipper1.ripModePreset    'Depends on actual rip mode preset:
  1140.     Case BURST                                  'if preset is Burst
  1141.         optBurst.Value = True                   'Sets the Burst option
  1142.     Case SYNCH                                  'if preset is Synch
  1143.         optSynch.Value = True                   'Sets the Synch option
  1144.     Case SECURE                                 'if preset is Secure
  1145.         optSecure.Value = True                  'Sets the Secure option
  1146.     Case PARANOID                               'if preset is Paranoid
  1147.         optParanoid.Value = True                'Sets the Paranoid option
  1148.     End Select
  1149.     Select Case AudioCDRipper1.ripOnErrorAction 'Depends on actual rip on error action:
  1150.     Case STOPGRAB                               'if action on error is StopRip
  1151.         optStop.Value = True                    'Sets the Stop option
  1152.     Case SILENCE                                'if action on error is Silence
  1153.         optSilence.Value = True                 'Sets the Silence option
  1154.     Case CUT                                    'if action on error is Cut
  1155.         optCut.Value = True                     'Sets the Cut option
  1156.     Case CORRECT                                'if action on error is Currect
  1157.         optCorrect.Value = True                 'Sets the Currect option
  1158.     End Select
  1159.     Select Case AudioCDRipper1.driveReadType     'Depends on drive read type:
  1160.     Case CDRT_ANY                               'if drive read type is CDRT_ANY
  1161.         optAny.Value = True                     'Sets the AUTO option
  1162.     Case CDRT_ATAPI1                            'if drive read type is CDRT_ATAPI1
  1163.         optIDE.Value = True                     'Sets the IDE option
  1164.     Case CDRT_READ6                             'if drive read type is CDRT_READ6
  1165.         optSCSI1.Value = True                   'Sets the SCSI(old) option
  1166.     Case CDRT_READ10                            'if drive read type is CDRT_READ10
  1167.         optSCSI2.Value = True                   'Sets the SCSI option
  1168.     End Select
  1169.     txtRipRetriesOnError.Text = AudioCDRipper1.ripOnErrorRetries   'Writes the actual rip on error retries to txtRipRetriesOnError text box
  1170.     AudioCDRipper1.driveReadType = CDRT_ANY      'Sets drive Read Type to ANY (Auto Detect)
  1171.     If AudioCDRipper1.trackCount <> 0 Then   'if number of tracks at the compact disk does not equal zero then
  1172.         udTrackNum.Min = 1  'Sets the minimum value of the "Num" updown scroll buttons in the "CD Track Info" frame to 1
  1173.         udTrackNum.Max = AudioCDRipper1.trackCount   'Sets the Maximum value of the "Num" updown scroll buttons in the "CD Track Info" frame to maximal number of tracks on the current CD
  1174.         udTrackNum.Value = AudioCDRipper1.trackNum   'writes to the "Num" textbox the current tracknumber
  1175.         txtTrackDuration.Text = Format(Int(AudioCDRipper1.trackDuration / 1000 / 60), "00") & ":" & Format((AudioCDRipper1.trackDuration / 1000) Mod 60, "00") 'writes to the "Duration" textbox in the "CD Track Info"  frame the length of the CD track in hours:minutes:seconds format
  1176.         GetCDDBButton.Enabled = True    'Enables GetCDDBButton
  1177.         cmdRip.Enabled = True  'Enables the "Rip Now!" button
  1178.     Else    'otherwise
  1179.         udTrackNum.Min = 0  'Sets the minimum value of the "Num" updown scroll buttons in the "CD Track Info" frame to zero
  1180.         udTrackNum.Max = 0  'Sets the Maximum value of the "Num" updown scroll buttons in the "CD Track Info" frame to zero
  1181.         udTrackNum.Value = 0    'writes zero to the "Num" textbox
  1182.         txtTrackDuration.Text = ""  'writes to the "Duration" textbox in the "CD Track Info"  frame an emty string
  1183.         GetCDDBButton.Enabled = False   'Enables GetCDDBButton
  1184.         cmdRip.Enabled = False 'disables the "Rip Now!" button
  1185.     End If
  1186.     ServerAddr.Text = AudioCDRipper1.cddbServerAddress   'Writes the current Server address to the ServerAddr textbox
  1187.     CGIAddr.Text = AudioCDRipper1.cddbCGIScript          'Writes the current CGI Script Relative Address to the CGIAddr textbox
  1188.     Agent.Text = AudioCDRipper1.cddbAgentName            'Writes the current Agent Name (Apllication) to the Agent textbox
  1189.     EMail.Text = AudioCDRipper1.cddbUserEMail            'Writes the current E-Mail Address to the EMail textbox
  1190.     txtAlbum.Text = AudioCDRipper1.cddbInfoAlbum         'Writes Album Info to the txtAlbum text box
  1191.     txtArtist.Text = AudioCDRipper1.cddbInfoArtist       'Writes Artist Info to the txtArtist text box
  1192.     txtGenre.Text = AudioCDRipper1.cddbInfoGenre         'Writes Genre Info to the txtGenre text box
  1193.     txtTitle.Text = AudioCDRipper1.cddbInfoTitle         'Writes Title Info to the txtTitle text box
  1194.     StatusBar1.Panels(1).Text = "Ready"                 'Sets Status Bar Panel 1 to the "Ready"
  1195.     Select Case AudioCDRipper1.cdType   'Depends on disc type sets the Status Bar Panel 2 to the disc type description
  1196.     Case REDBOOK                                        'if cdType is REDBOOK:
  1197.         StatusBar1.Panels(2) = "CD-DA (Audio Disc)"     'the disc is Audio Disc
  1198.     Case YELLOWBOOK                                     'if cdType is YELLOWBOOK:
  1199.         StatusBar1.Panels(2) = "Data CD"                'the disc is Data CD without audio tracks
  1200.     Case ORANGEBOOK                                     'if cdType is ORANGEBOOK:
  1201.         StatusBar1.Panels(2) = "Data CD"                'the disc is Data CD without audio tracks (multisession)
  1202.     Case GREENBOOK                                      'if cdType is GREENBOOK:
  1203.         StatusBar1.Panels(2) = "CD-Interactive"         'the disc is Interactive CD
  1204.     Case BLUEBOOK                                       'if cdType is BLUEBOOK:
  1205.         StatusBar1.Panels(2) = "CD-Extra"               'the disc is Enhanced CD, contains audio tracks and the data files (video clips for example)
  1206.     Case UNRECOGNIZED                                   'if cdType is UNRECOGNIZED:
  1207.         StatusBar1.Panels(2) = "No Disk"                'it is No disc, disc unrecognized or drive mulfunction
  1208.         Eject.Enabled = False                           'In this case disc cannot be ejected so disable the "Eject" button
  1209.     End Select
  1210.         
  1211.     StatusBar1.Panels(3).Text = "CDDB Disc ID: " & Hex(AudioCDRipper1.cdID)  'Sets Status Bar Panel 3 to the CDDB Disc ID value (Hex)
  1212. End Sub
  1213. Private Sub FormStartRip() 'this sub prepare form to start extracting audio data
  1214.         cmdRip.Caption = "Stop Rip"   'change "RipNow!" button caption to "Stop Rip"
  1215.         Inactive                        'Makes inactive that controls on form, which are disabled when rip in progress
  1216.         GetCDDBButton.Enabled = False    'No get CDDB information possible when rip in progress
  1217.             
  1218.         ProgressBar1.Visible = True      'Makes the progress bar visible to show the percent of data been ripbed
  1219.         ProgressBar1.Value = 0.0002      'Movs the progress bar on to the start position
  1220.         errorBlocks = 0                  'Sets error blocks number to zero
  1221.         CancelRp = False                'clean CancelRp value if any
  1222.         txtDriveStatus.Caption = "Spin Up Disk" 'Time between start rip and first ripBlock() event is disk spin up time
  1223. End Sub
  1224. Private Sub FormStopRip()  'this sub prepare form to stop extracting audio data
  1225.         Active
  1226.         GetCDDBButton.Enabled = True     'Enables GetCDDBInfo button
  1227.         ProgressBar1.Visible = False     'sets the progress bar invisible to the user
  1228.         txtDriveStatus.Caption = "Idle" 'Extracting audio ends, drives stop read data
  1229.         If errorBlocks <> 0 Then    'if there was blocks with unrecovered error
  1230.             Select Case AudioCDRipper1.ripOnErrorAction 'depends on selected Action On Error
  1231.             Case SILENCE:               'if it was Silence
  1232.                 MsgBox errorBlocks & " error blocks replaced with silence." 'informs user about silence error correction
  1233.             Case CUT:                   'if it was Cut
  1234.                 MsgBox errorBlocks & " error blocks cutted."    'informs user that error blocks was cutted
  1235.             Case CORRECT:               'if it was Correct
  1236.                 MsgBox errorBlocks & " error blocks corrected." 'informs user that it was corrected
  1237.             End Select
  1238.         End If
  1239.         cmdRip.Caption = "Rip Now!"    'Returns the rip button caption in it initial state
  1240. End Sub
  1241. Private Sub AudioCDRipper1_RipProgress(ByVal Percent As Long)  'this event sub occurs when block is completed in ripbing process
  1242. '    DoEvents        'Yields execution so that operating system could produce the other events
  1243.     If CancelRp = True Then
  1244.         AudioCDRipper1.StopRip   'if CancelRp was set to true then stops ripbing procedureif
  1245.     Else
  1246.        txtDriveStatus.Caption = "Extracting Audio" 're-sets drive status label to the current drive status
  1247.        ProgressBar1.Value = Percent
  1248.     End If
  1249.             
  1250.     If Percent = 100 Then
  1251.         time2 = Now     'Gets the finishing time of ripbing procedure
  1252.         FormStopRip        'return the form to it's initial state
  1253.         If CancelRp = False Then   'if track ripbed from start to end, it was no StopRip clicks
  1254.                MsgBox txtTitle.Text & " is ready now! Ripper speed: " & Format(AudioCDRipper1.trackDuration / DateDiff("s", time1, time2) / 1000, "#0.00") & " X."    'if the ripbing process was finished then produces the message box with the finishing message and ripbing time and speed
  1255.         End If
  1256.         txtDriveStatus.Caption = "Idle..."
  1257.         RipInProgress = False
  1258.         CancelRp = False               'Returns CancelRp variable in its default state if any
  1259.     End If
  1260. '    DoEvents        'Yields execution so that operating system could produce the other events
  1261. End Sub
  1262. Private Sub AudioCDRipper1_RipRetry(ByVal retryNum As Long)  'this event sub occurs when block is completed in ripbing process
  1263.     txtDriveStatus.Caption = "Read or Synch Error! Retry: " & retryNum  'sets drive status label to the drive status
  1264.     DoEvents                'Yields execution so that operating system could produce the other events
  1265.     If CancelRp = True Then AudioCDRipper1.StopRip     'Cancel ripbing was set to true then stops ripbing procedureif
  1266. End Sub
  1267. Private Sub AudioCDRipper1_CDDBQueryStatus(ByVal cddbQueryStatus As CDDBQueryStatusConstants)  'this event informs AudioRipber ActiveX client about current status of CDDB query
  1268.     Select Case cddbQueryStatus                                     'depends on CDDB query status
  1269.     Case QUERY                                                      'if status is Query
  1270.         StatusBar1.Panels(4).Text = "CDDB Status: QUERY"            'Sets Status Bar Panel(4) to Query status
  1271.     Case PROCESSANSWER                                              'if status is ProcessAnswer
  1272.         StatusBar1.Panels(4).Text = "CDDB Status: PROCESS ANSWER"   'Sets Status Bar Panel(4) to Process Answer status
  1273.     End Select
  1274. End Sub
  1275. Private Sub AudioCDRipper1_Error(ByVal Code As ErrcodeConstants) 'this event occurs when reading of track is completed after applying ReadTrack method
  1276.     MsgBox "An error occures! Error Code " & Code 'produces the message box with a message about the error occuring
  1277.     error = True
  1278. End Sub
  1279. Private Sub AudioCDRipper1_MediaChange() 'this event occurs when user eject or insert the disk
  1280.     Inactive    'Inactive form controls that can't be use during refresh
  1281.     RefreshCD   'Calls the RefreshCD sub
  1282.     Active      'Active the form controls
  1283. End Sub
  1284. Private Sub Inactive()  'this sub inactives the form controls, that cannot be used during Play, Rip or Refresh operations
  1285.         optBurst.Enabled = False
  1286.         optSynch.Enabled = False
  1287.         optSecure.Enabled = False
  1288.         optParanoid.Enabled = False
  1289.         optAny.Enabled = False
  1290.         optIDE.Enabled = False
  1291.         optSCSI1.Enabled = False
  1292.         optSCSI2.Enabled = False
  1293.         optStop.Enabled = False
  1294.         optSilence.Enabled = False
  1295.         optCut.Enabled = False
  1296.         optCorrect.Enabled = False
  1297.         cmdRefresh.Enabled = False
  1298.         chkDriveLockTray.Enabled = False
  1299.         chkUseExtASPI.Enabled = False
  1300.         udSpinUpTime.Enabled = False
  1301.         udRetries.Enabled = False
  1302.         udDriveSpeed.Enabled = False
  1303.         udTrackNum.Enabled = False
  1304.         Eject.Enabled = False
  1305.         optWAV.Enabled = False
  1306.         optMP3.Enabled = False
  1307.         optWMA.Enabled = False
  1308.         optOGG.Enabled = False
  1309.         txtSpinUpTime.Enabled = False
  1310.         txtRipRetriesOnError.Enabled = False
  1311.         txtDriveSpeed.Enabled = False
  1312.         txtTrackNum.Enabled = False
  1313.         udDriveNum.Enabled = False
  1314.         txtDriveNum.Enabled = False
  1315.         optCDDBAny.Enabled = False
  1316.         optCDDBOnLine.Enabled = False
  1317.         optCDPLAYERINI.Enabled = False
  1318.         udTimeOut.Enabled = False
  1319.         txtCDDBTimeOut.Enabled = False
  1320.         cmdOGG.Enabled = False
  1321.         cmdMP3.Enabled = False
  1322.         udWMAProfile.Enabled = False
  1323. End Sub
  1324. Private Sub Active()    'Actives the form controls, that was disabled with Inactive()
  1325.         optBurst.Enabled = True
  1326.         optSynch.Enabled = True
  1327.         optSecure.Enabled = True
  1328.         optParanoid.Enabled = True
  1329.         optAny.Enabled = True
  1330.         optIDE.Enabled = True
  1331.         optSCSI1.Enabled = True
  1332.         optSCSI2.Enabled = True
  1333.         optStop.Enabled = True
  1334.         optSilence.Enabled = True
  1335.         optCut.Enabled = True
  1336.         optCorrect.Enabled = True
  1337.         cmdRefresh.Enabled = True
  1338.         chkDriveLockTray.Enabled = True
  1339.         chkUseExtASPI.Enabled = True
  1340.         udSpinUpTime.Enabled = True
  1341.         udRetries.Enabled = True
  1342.         udDriveSpeed.Enabled = True
  1343.         udTrackNum.Enabled = True
  1344.         If AudioCDRipper1.cdType <> UNRECOGNIZED Then
  1345.             Eject.Enabled = True
  1346.         End If
  1347.         optWAV.Enabled = True
  1348.         optMP3.Enabled = True
  1349.         optWMA.Enabled = True
  1350.         optOGG.Enabled = True
  1351.         txtSpinUpTime.Enabled = True
  1352.         txtRipRetriesOnError.Enabled = True
  1353.         txtDriveSpeed.Enabled = True
  1354.         txtTrackNum.Enabled = True
  1355.         udDriveNum.Enabled = True
  1356.         txtDriveNum.Enabled = True
  1357.         optCDDBAny.Enabled = True
  1358.         optCDDBOnLine.Enabled = True
  1359.         optCDPLAYERINI.Enabled = True
  1360.         udTimeOut.Enabled = True
  1361.         txtCDDBTimeOut.Enabled = True
  1362.         cmdOGG.Enabled = True
  1363.         cmdMP3.Enabled = True
  1364.         udWMAProfile.Enabled = True
  1365.         
  1366. End Sub
  1367.